<ul class="sf_admin_actions">
  <li><?php echo button_to(__('list'), 'mr3/list?id='.$mr3->getId(), array (
  'class' => 'sf_admin_action_list',
)) ?></li>
  <li><?php
  if ($mr3->getReviseId()){
    echo submit_tag(__('revise'), array (
      'name' => 'save',
      'class' => 'sf_admin_action_save',
    )) ;
  }
  else {  echo submit_tag(__('save'), array (
  'name' => 'save',
  'class' => 'sf_admin_action_save',
));

    if ($sf_user->hasGroup('Administrator')){
echo submit_tag(__('save as approved'), array (
  'name' => 'save_as_approved',
  'class' => 'sf_admin_action_save',
  'confirm' => __('Are you sure you want to save this approved MR?')
)); }
  }
?></li>
  <li><?php if (!$mr3->getReviseId()) echo submit_tag(__('save and add'), array (
  'name' => 'save_and_add',
  'class' => 'sf_admin_action_save_and_add',
)) ?></li>
</ul>
